import request from '@/utils/request'

/** ****************************活动公告*******************************************/
export function getAllOrgs(data) {
  return request({
    url: '/v1/org',
    method: 'GET'
  })
}

export function getAnoticeList(data) {
  return request({
    url: '/v1/coach/getCoachForPage?current=' + data.current + '&size=' + data.size,
    method: 'GET'
  })
}

export function addAnoticeList(data) {
  return request({
    url: '/v1/coach/saveCoach',
    method: 'POST',
    data: data
  })
}
export function editorAnoticeList(data) {
  return request({
    url: '/v1/coach/',
    method: 'PUT',
    data: data
  })
}
export function delAnoticeList(data) {
  return request({
    url: '/v1/coach',
    method: 'DELETE',
    data: data
  })
}
export function searchAnoticeList(data) {
  return request({
    url: '/v1/activityCenter?current=' + data.current + '&size=' + data.size + '&advertName=' + data.advertName + '&type=' + data.type,
    method: 'GET'
  })
}

